package com.cn.springcloudshop.model;

import java.io.Serializable;

/**
 * 用户类
 */
public class YmUser implements Serializable{
    /**
     * 流水ID
     */
    private Long userId;
    /**
     * 来源渠道id(来源渠道唯一标识.如:openid或appid)
     */
    private String registerChannelId;
    /**
     * 手机号码(可作为app登录账号唯一)
     */
    private String userPhone;
    /**
     * 用户类型(0普通用户1医生)
     */
    private Short type;
    /**
     * 密码(暂时保留)
     */
    private String password;
    /**
     * 用户昵称
     */
    private String nickname;
    /**
     * 用户默认地址id
     */
    private Long addressId;
    /**
     * 用户头像地址
     */
    private String headimgurl;
    /**
     * 注册渠道
     */
    private String registerChannel;
    /**
     * 用户状态(0:失效 1:正常)
     */
    private Short state;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 修改时间
     */
    private String updateTime;
    /**
     * 用户地址
     */
    private String address;

    /**
     * 用户豆豆
     */
    private Long userPoint=0L;

    public Long getUserPoint() {
        return userPoint;
    }

    public void setUserPoint(Long userPoint) {
        this.userPoint = userPoint;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getRegisterChannelId() {
        return registerChannelId;
    }

    public void setRegisterChannelId(String registerChannelId) {
        this.registerChannelId = registerChannelId == null ? null : registerChannelId.trim();
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone == null ? null : userPhone.trim();
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl == null ? null : headimgurl.trim();
    }

    public String getRegisterChannel() {
        return registerChannel;
    }

    public void setRegisterChannel(String registerChannel) {
        this.registerChannel = registerChannel == null ? null : registerChannel.trim();
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}